//
//  SDPhoneCell.swift
//  SortProject
//
//  Created by ALH000355 on 2022/7/15.
//

import UIKit

class SDPhoneCell: UITableViewCell {

    var phoneLb: UILabel!
    var callBtn: UIButton!
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        uiConfig()
    }
    
    func uiConfig() {
        
        phoneLb = UILabel.init()
        phoneLb.text = "电话：17696149278"
        contentView.addSubview(phoneLb)
        phoneLb.font = .systemFont(ofSize: 16)
        phoneLb.snp.makeConstraints { make in
            make.left.equalTo(30)
            make.top.equalTo(12)
            make.width.equalTo(178)
            make.height.equalTo(20)
        }
        callBtn = UIButton.init(type: .custom)
        contentView.addSubview(callBtn)
        callBtn.setTitle("一键拨打", for: .normal)
        callBtn.setTitleColor(.gray, for: .normal)
        callBtn.layer.borderColor = UIColor.gray.cgColor
        callBtn.layer.borderWidth = 1
        callBtn.layer.cornerRadius = 5
        callBtn.layer.masksToBounds = true
        callBtn.snp.makeConstraints { make in
            make.right.equalTo(-30)
            make.top.equalTo(9)
            make.width.equalTo(88)
            make.height.equalTo(26)
        }
        
    }

}
